package com.iad.entity;
import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Table;
import javax.persistence.GeneratedValue;
import javax.persistence.ManyToOne;


import static javax.persistence.GenerationType.IDENTITY;

@Entity
@Table(name = "song")
public class Song implements java.io.Serializable {
  private Long id;
  private String name;
  private String path;
  private String album;
  private Long siteId;

  public Song() {
  }

  public Song(Long id, String name, String path, String album, Long siteId) {
    this.id = id;
    this.name = name;
    this.path = path;
    this.album = album;
    this.siteId = siteId;
  }

  @Id
  @GeneratedValue(strategy = IDENTITY)
  @Column(name = "id", unique = true, nullable = false)
  public Long getId() {
    return this.id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  @Column(name = "name", nullable = false, length = 80)
  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }
  
  @Column(name = "path", nullable = false, length = 80)
  public String getPath() {
    return this.path;
  }

  public void setPath(String path) {
    this.path = path;
  }
  
  @Column(name = "album", nullable = true, length = 80)
  public String getAlbum() {
    return this.album;
  }

  public void setAlbum(String album) {
    this.album = album;
  }
  
  @Column(name = "site_id", unique = false, nullable = false)
  public Long getSiteId() {
    return this.siteId;
  }

  public void setSiteId(Long siteId) {
    this.siteId = siteId;
  }

}
